<?php
/**
 * @Name: BaseModel.php
 * @Author: yashuai<1762910894@qq.com>
 */

namespace app\common\model;

use think\Model;
use HugCode\PhpUnits\InstanceTool;

class BaseModel extends Model
{

    use InstanceTool;

    /**
     * @Desc 获取不带前缀的表明
     * @param string $alias
     * @return string
     * @author yashuai<1762910894@qq.com>
     */
    public static function joinName(string $alias = '')
    {
        return self::instance()->table . ' ' . $alias;
    }


}
